
<!DOCTYPE html>
<html lang="zh-cn">

<!-- Mirrored from v3.bootcss.com/examples/jumbotron-narrow/ by HTTrack Website Copier/3.x [XR&CO'2013], Sun, 26 Jan 2014 11:51:18 GMT -->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">

	<title>{$arts.title} -问卷调查</title>

	<!-- Bootstrap core CSS -->
	<link href="__PUBLIC__/static/dist/css/bootstrap.css" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="__PUBLIC__/static/jumbotron-narrow2.css" rel="stylesheet">

	<!-- Just for debugging purposes. Don't actually copy this line! -->
	<!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
      <![endif]-->
    </head>

    <body>

     <div class="container">



       {if condition="$arts.close neq '0'"}
       <h2 class="post-title">该问卷已关闭，谢谢参与！</h2>
       {else}
       <h2 class="post-title">问卷：{$arts.title}</h2>

       <h5 class="post-title">问卷说明：{$arts.desc}   <?php echo session('loginmember');?> <?php echo session('serialnumber');?> 
       </h5>


       <!-- 弹出的验证对话框 if验证通过不弹出 -->
       <form action="{:url('article/open_answer')}" method="post" class="form-horizontal" role="form" style="display: {if condition="session('loginmember') neq null "}none{/if} ">
         <div class="form-group">
         <label for="inputEmail3" class="col-sm-2 control-label">请输入姓名</label>
          <div class="col-sm-10">
           <input type="text"  name="loginmember" class="form-control" id="inputEmail3" placeholder="姓名">
         </div>
       </div>
       <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">请输入学号</label>
        <div class="col-sm-10">
         <input type="hidden" name="artid" value="{$arts.id}" />
         <input type="text" name="serialnumber" class="form-control" id="inputPassword3" placeholder="学号">
       </div>
     </div>
  			<!-- <div class="form-group">
  				<div class="col-sm-offset-2 col-sm-10">
  					<div class="checkbox">
  						<label>
  							<input type="checkbox"> Remember me
  						</label>
  					</div>
  				</div>
  			</div> -->
  			<div class="form-group">
  				<div class="col-sm-offset-2 col-sm-10">
  					<button type="submit" class="btn btn-default">开始答题</button>
  				</div>
  			</div>
  		</form>
  		<!-- <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data" style="display: none">
  			姓名:<input type="text" class="form-control" ></br>
  			学号:<input type="text" class="form-control" ></br>
  			<input type="submit" class="btn btn-default" value="提交"   />
  		</form> -->

  		<!-- 结束弹出 -->

  		<form action="" method="post" id="myform" name="myform" enctype="multipart/form-data" style="display: {if condition="session('loginmember') neq null"} {else}none{/if}">


  			{volist name="article_contens" id="vo"}

  			<h4>问题{$i}：{$vo.title} </h4>

  			<!-- 判断题目的类型 -->
  			{switch name="$vo.type"}
  			{case value="0"}{assign name="var" value="radio" /}
  			{assign name="c1" value="" /}
  			{assign name="c2" value="" /}
  			{assign name="c3" value="" /}
  			{assign name="c4" value="" /}
  			{assign name="c5" value="" /}
  			{assign name="c6" value="" /}
        {assign name="u1" value="1" /}
        {assign name="u2" value="2" /}
        {assign name="u3" value="3" /}
        {assign name="u4" value="4" /}
        {assign name="u5" value="5" /}
        {assign name="u6" value="6" /}
  			{/case}
  			{case value="1"}{assign name="var" value="checkbox" /}
  			{assign name="c1" value="1" /}
  			{assign name="c2" value="2" /}
  			{assign name="c3" value="3" /}
  			{assign name="c4" value="4" /}
  			{assign name="c5" value="5" /}
  			{assign name="c6" value="6" /}
        {assign name="u1" value="1" /}
        {assign name="u2" value="1" /}
        {assign name="u3" value="1" /}
        {assign name="u4" value="1" /}
        {assign name="u5" value="1" /}
        {assign name="u6" value="1" /}
  			{/case}
  			{default /}{assign name="var" value="checkbox" /}
  			{assign name="c1" value="1" /}
  			{assign name="c2" value="2" /}
  			{assign name="c3" value="3" /}
  			{assign name="c4" value="4" /}
  			{assign name="c5" value="5" /}
  			{assign name="c6" value="6" /}
        {assign name="u1" value="1" /}
        {assign name="u2" value="1" /}
        {assign name="u3" value="1" /}
        {assign name="u4" value="1" /}
        {assign name="u5" value="1" /}
        {assign name="u6" value="1" /}
  			{/switch}
  			<input type="hidden" name="answerid{$i}" value="{$vo.id}" />
  			<!-- 题目的id{$vo.id} -->
  			<input type="hidden" name="var{$i}" value="{$var}" />
        <ul class="list-group">


  			 
         {notempty name="$vo.answer1"}
         <li class="list-group-item"><div class="{$var}">
        选项a：<label>
        <input type="{$var}" name="answer{$i}{$c1}"  id="answer{$i}{$c1}"  value="{$u1}"  >{$vo.answer1} 
        </label>
        </div></li>
        {/notempty}
  			


         {notempty name="$vo.answer2"}
         <li class="list-group-item"><div class="{$var}">
        选项b：<label>
        <input type="{$var}" name="answer{$i}{$c2}"  id="answer{$i}{$c1}"  value="{$u2}"  >{$vo.answer2} 
        </label>
        </div></li>
        {/notempty}
  			


         {notempty name="$vo.answer3"}
         <li class="list-group-item"><div class="{$var}">
        选项c：<label>
        <input type="{$var}" name="answer{$i}{$c3}"  id="answer{$i}{$c1}"  value="{$u3}"  >{$vo.answer3} 
        </label>
        </div></li>
        {/notempty}
  			


         {notempty name="$vo.answer4"}
         <li class="list-group-item"><div class="{$var}">
        选项d：<label>
        <input type="{$var}" name="answer{$i}{$c4}"  id="answer{$i}{$c1}"  value="{$u4}"  >{$vo.answer4} 
        </label>
        </div></li>
        {/notempty}
  			


         {notempty name="$vo.answer5"}
         <li class="list-group-item"><div class="{$var}">
        选项e：<label>
        <input type="{$var}" name="answer{$i}{$c5}"  id="answer{$i}{$c1}"  value="{$u5}"  >{$vo.answer5} 
        </label>
        </div></li>
        {/notempty}
  			


         {notempty name="$vo.answer6"}
         <li class="list-group-item"><div class="{$var}">
        选项f：<label>
        <input type="{$var}" name="answer{$i}{$c6}"  id="answer{$i}{$c1}"  value="{$u6}"  >{$vo.answer6}
        </label>
        </div>{/notempty}
  			



</ul>
  			{/volist}

  			  <p>
       <button type="submit" class="btn btn-info">提交问卷</button>
    </p>
        

  			<!-- url('index/blog/read','id=5&name=thinkphp'); -->
  		</form>
      <h6><a href="{:url('open_answer',array('artid'=>$arts['id'],'reset'=>1))}"> 重填 </a></h6>

      <!-- 分类:{$arts.catename} | 评论:555 | 浏览:<span id="spn75">{$arts.click}</span> -->

      {/if}
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
  </body>
  </html>











